<template>
    <div>
        <Time :year="year" @changeTime="changeTime"></Time>
        <ShowList :year="year"></ShowList>
    </div>
</template>

<script>
import ShowList from '../components/movie/ShowList.vue'
import Time from '../components/movie/Time.vue'
export default {
    name: "Movie",
    components: { Time,ShowList },
    data() {
        return {
            year: ""
        }
    },
    methods: {
        changeTime(newYear) {
            this.year = newYear;
        },
    }
}
</script>

<style lang="less" scoped>

</style>